package com.ss.singleton;

/**
 * 单例 - 懒汉模式
 * @author 叁昇
 * @create 2021-01-02-17:29
 */
public class Singleton_01 {
    private static Singleton_01 instance;

    private Singleton_01() {
    }

    public static Singleton_01 getInstance() {
        if ( null != instance ) return instance;
        instance = new Singleton_01();
        return instance;
    }
}
